home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / examples / infobrws / src / playvfw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-15  |  2.9 KB  |  164 lines

  1. //     (C) Copyright Microsoft Corp. 1991.  All rights reserved.
  2. //
  3. //     You have a royalty-free right to use, modify, reproduce and 
  4. //     distribute the Sample Files (and/or any modified version) in 
  5. //     any way you find useful, provided that you agree that 
  6. //     Microsoft has no warranty obligations or liability for any 
  7. //     Sample Application Files which are modified. 
  8.  
  9.  
  10.  
  11. /* String table constants */
  12. #define IDSNAME     100
  13. #define IDSABOUT    200
  14. #define IDSTITLE    300
  15.  
  16. /* 'About' dialog box resource id */
  17. #define ABOUTBOX    1 
  18.  
  19. /* button bar dialog box resource id */
  20. #define BUTTONBAR 2
  21.  
  22. /* icon name */
  23. #define PLAYVFWICON 1
  24.  
  25. #define BUTTON1CURSOR 1
  26. #define BUTTON2CURSOR 2
  27. #define BUTTON3CURSOR 3
  28. #define BUTTON4CURSOR 4
  29. #define BUTTON5CURSOR 5
  30. #define BUTTON6CURSOR 6
  31.  
  32. /* menu items */
  33.  
  34. #define IDM_OPEN_DEVICE_PLAY    500
  35. #define IDM_EXIT        600
  36.  
  37.  
  38.  
  39. #define ID_HELP   100
  40.  
  41.  
  42. #define IDC_AUDIO     10
  43. #define IDC_VIDEO     20
  44. #define IDC_ANIMATION 30
  45. #define IDC_GRAPHICS  40
  46. #define IDC_HELP      50
  47. #define IDC_TEXT      60
  48. #define IDC_VIDWIN    70
  49. #define IDC_MORPH     80  
  50. #define IDC_EDIT      90 
  51.  
  52. #define ID_PLAY       10
  53. #define ID_PAUSE      20
  54. #define ID_REWIND     30
  55. #define ID_FORWARD    40
  56. #define ID_STOP       50 
  57. #define ID_BACK       60   
  58.  
  59. // define constant for NT
  60.  
  61. #define WF_WINNT 0x4000
  62.  
  63. char szAppName[10];
  64. char szAbout[10];
  65. char szMessage[25];
  66. int MessageLength;
  67.  
  68.  
  69. FARPROC lpprocAbout;
  70. HANDLE hLibrary;
  71.  
  72. WORD wGlobalDeviceID;
  73. WORD wGlobalAudioDeviceID;
  74.  
  75. HWND hWndButtonBar;
  76. HWND hWndEdit;
  77.  
  78.  
  79. HANDLE hHelloCursor;
  80.  
  81.  
  82. RECT audiorect;
  83. RECT videorect;
  84. RECT textrect;
  85. RECT helprect;
  86. RECT graphicsrect;
  87. RECT animationrect;
  88.  
  89.  
  90. HANDLE hInst;
  91. FARPROC lpprocAbout;
  92.  
  93.  
  94. HWND hWndMain;
  95.  
  96.  
  97. typedef struct tagButtonStruct
  98.       {
  99.       HWND hWnd;
  100.       WORD wDeviceID;
  101.       HANDLE hCursor;
  102.       
  103.       WORD wAudioDeviceID;
  104.       BOOL bPlayVideo;
  105.       BOOL bPlayAudio;
  106.       BOOL bVideoPlaying;
  107.       BOOL bAudioPlaying;
  108.       BOOL bVideoPaused;
  109.       BOOL bButtonDown;
  110.       BOOL bRButtonClicked;
  111.       char szFileName[26];
  112.       } DEVICESTRUCT;
  113.  
  114. typedef DEVICESTRUCT FAR * LPDEVICESTRUCT;
  115.   
  116. LPDEVICESTRUCT lpDevice1;
  117. LPDEVICESTRUCT lpDevice2;
  118. LPDEVICESTRUCT lpDevice3;
  119. LPDEVICESTRUCT lpDevice4;
  120. LPDEVICESTRUCT lpDevice5;
  121. LPDEVICESTRUCT lpDevice6;
  122. LPDEVICESTRUCT lpDevice7;
  123. LPDEVICESTRUCT lpDevice8;
  124. LPDEVICESTRUCT lpDevice9;
  125.  
  126.  
  127. HANDLE hDevice1;
  128. HANDLE hDevice2;
  129. HANDLE hDevice3;
  130. HANDLE hDevice4;
  131. HANDLE hDevice5;
  132. HANDLE hDevice6;
  133. HANDLE hDevice7;
  134. HANDLE hDevice8; 
  135. HANDLE hDevice9;
  136.  
  137. typedef struct tagDirStruct
  138.       {
  139.       char szIniDir[80];
  140.       char szAviDir[80];
  141.       char szWavDir[80];
  142.       } DIRSTRUCT;
  143.  
  144. typedef DIRSTRUCT FAR * LPDIRSTRUCT;  
  145.  
  146. HANDLE hDirs;
  147. LPDIRSTRUCT lpDirs;
  148.  
  149.  
  150. BOOL bIsPage2;
  151. BOOL bIsPage1;
  152. BOOL bIsPage0;
  153.  
  154.  
  155. BOOL bButtonDown;
  156. HWND hOld;
  157. RECT BmpPoints;
  158.  
  159. HPALETTE hPal;             
  160.  
  161. BOOL bNoSound;     
  162.  
  163. HANDLE VWRGlobal;
  164. RECT Points3;